
			var _PSC_C_API = function() {
				function r(e, t, n) {
					var r = e.indexOf("?", e.indexOf("?") + 1) < 0 ? e : e.slice(0, e.indexOf("?", e.indexOf("?") + 1)),
						i = /(\S{1,})\?([^\?]*)(#|$)/,
						s = new RegExp("(^|&)" + t + "(=[^&^#^=]*)?(&|#|$)"),
						o = r.match(i),
						u = o ? o[2] : "",
						a = t + "=" + n,
						f = s.test(u) ? u.replace(s, "$1" + a + "$3") : a + (u ? "&" : "") + u;
					return o ? o[1] + "?" + f : r.replace(/([^#]*)([\S]*)/, "$1?" + f + "$2")
				}

				function i() {
					if(!window.NEJsbridge) return;
					window.shareConfig.url = r(window.shareConfig.url, "_stat_from", "web_pd_activity"), NEJsbridge.call("setShareParams", '{"title":"' + window.shareConfig.title + '","timeline":"' + window.shareConfig.timeline_title + '","content":"' + window.shareConfig.desc + '","imageUrl":"' + window.shareConfig.img + '","shareUrl":"' + window.shareConfig.url + '","largeImageUrl":"' + (window.shareConfig.wbpic || window.shareConfig.img) + '","topicId":' + (window.shareConfig.topicId % 1 !== 0 ? window.shareConfig.topicId : (new Date).getTime()) + "}"), window.onShareResult = function(e, t) {
						try {
							l(window.shareConfig.callback) && window.shareConfig.callback(e, t)
						} catch(n) {}
					}, $(".J_YX_M_share").unbind().click(function() {
						NEJsbridge.call("setShareToSNSCallback", "")
					})
				}

				function s(e) {
					var n = [],
						r = [];
					return e.forEach(function(e, t) {
						switch(e) {
							case "wxFriend":
								n.push("wechatFriend"), r.push({
									type: "WeiXinFriend"
								});
								break;
							case "wxTimeline":
								n.push("wechatPengYouQuan"), r.push({
									type: "WeiXinTimeline"
								});
								break;
							case "weibo":
								n.push("weibo"), r.push({
									type: "WeiBo",
									data: {
										shareTitle: window.shareConfig.title,
										shareContent: window.shareConfig.wContent || window.shareConfig.desc,
										shareUrl: window.shareConfig.url,
										thumbUrl: window.shareConfig.wbpic || window.shareConfig.img
									}
								});
								break;
							case "QQFriend":
								r.push({
									type: "QQFriend"
								});
								break;
							case "QQZone":
								n.push("qzone"), r.push({
									type: "QQZone"
								});
								break;
							case "yxFriend":
								n.push("yixinFriend"), r.push({
									type: "YiXinFriend"
								});
								break;
							case "yxTimeline":
								n.push("yixinPengYouQuan"), r.push({
									type: "YiXinTimeline"
								});
								break;
							case "message":
								r.push({
									type: "Message"
								});
								break;
							case "copy":
								r.push({
									type: "Message"
								});
								break;
							case "mail":
								r.push({
									type: "Mail"
								})
						}
					}), t == 2 ? n : r
				}

				function o(e) {
					switch(e) {
						case "WeiXinFriend":
							return 0;
						case "WeiXinTimeline":
							return 1;
						case "WeiBo":
							return 2;
						case "YiXinFriend":
							return 3;
						case "YiXinTimeline":
							return 4;
						case "QQZone":
							return 5;
						case "QQFriend":
							return 6;
						case "Message":
							return 7;
						case "Copy":
							return 8;
						case "Mail":
							return 9
					}
				}

				function u() {
					if(!window.appHost) return;
					window.appHost.invoke("socialShare", {
						content: {
							panelTitle: window.shareConfig.title,
							subject: window.shareConfig.timeline_title,
							description: window.shareConfig.desc,
							imageUrl: window.shareConfig.img,
							link: window.shareConfig.url
						},
						supportList: window.shareConfig.shareList ? s(window.shareConfig.shareList) : ""
					})
				}

				function a() {
					var e = 0,
						t;
					if(!window.appHost) return;
					window.appHost.invoke("share", {
						"default": {
							shareTitle: window.shareConfig.title,
							shareContent: window.shareConfig.desc,
							shareUrl: window.shareConfig.img,
							thumbUrl: window.shareConfig.url
						},
						list: window.shareConfig.shareList ? s(window.shareConfig.shareList) : ""
					}, function(n, r) {
						n == "success" && (e = 1), t = o(r);
						try {
							l(window.shareConfig.callback) && window.shareConfig.callback(e, t)
						} catch(i) {}
					})
				}

				function f(e) {
					var t = null;
					try {
						t = new Event("appHostLoaded")
					} catch(n) {
						t = document.createEvent("Event"), t.initEvent("appHostLoaded", !0, !0)
					}
					document.addEventListener("DOMContentLoaded", function() {
						window.appHost ? document.dispatchEvent(t) : window.appHostOnLoad = function() {
							document.dispatchEvent(t)
						}
					}, !1), document.addEventListener("appHostLoaded", function(t) {
						e()
					}, !1)
				}

				function l(e) {
					return typeof e == "function"
				}

				function c() {
					window.YixinJSBridge = window.WeixinJSBridge || window.YixinJSBridge;
					try {
						YixinJSBridge.on("menu:share:timeline", function(e) {
							YixinJSBridge.invoke("shareTimeline", {
								img_url: window.shareConfig.img,
								img_width: 55,
								img_height: 55,
								link: window.shareConfig.url,
								desc: window.shareConfig.desc,
								title: window.shareConfig.timeline_title ? window.shareConfig.timeline_title : window.shareConfig.title
							}, function() {
								try {
									l(window.shareConfig.callback) && window.shareConfig.callback()
								} catch(e) {}
							}, function() {})
						}), n ? YixinJSBridge.on("menu:share:weibo", function() {
							YixinJSBridge.invoke("shareWeibo", {
								url: l(window.shareConfig.url) ? window.shareConfig.url(2) : window.shareConfig.url,
								content: window.shareConfig.title + ":" + window.shareConfig.desc
							}, function() {
								try {
									l(window.shareConfig.callback) && window.shareConfig.callback()
								} catch(e) {}
							})
						}) : YixinJSBridge.on("menu:share:weibo", function() {
							YixinJSBridge.invoke("shareWeibo", {
								img_url: window.shareConfig.wbpic || window.shareConfig.img,
								img_width: 55,
								img_height: 55,
								url: l(window.shareConfig.url) ? window.shareConfig.url(2) : window.shareConfig.url,
								content: window.shareConfig.wContent
							}, function() {
								try {
									l(window.shareConfig.callback) && window.shareConfig.callback()
								} catch(e) {}
							})
						}), YixinJSBridge.on("menu:share:appmessage", function() {
							YixinJSBridge.invoke("sendAppMessage", {
								img_url: window.shareConfig.img,
								img_width: 55,
								img_height: 55,
								link: l(window.shareConfig.url) ? window.shareConfig.url(3) : window.shareConfig.url,
								desc: window.shareConfig.desc,
								title: window.shareConfig.title
							}, function() {
								try {
									l(window.shareConfig.callback) && window.shareConfig.callback()
								} catch(e) {}
							})
						}), l(window.shareConfig.readycallback) && window.shareConfig.readycallback()
					} catch(e) {}
				}
				var e = navigator.userAgent.toLowerCase(),
					t = /yanxuan/.test(e) ? 1 : /MoneyKeeper/.test(e) ? 2 : /MailMaster/.test(e) ? 4 : 5,
					n = /android/i.test(e);
				return t == 4 ? f(a) : t == 2 ? u() : t == 1 ? (!n && !window.noResetTitle && window.shareConfig && (window.shareConfig.title = document.title), window.onShareClick = function() {}, document.addEventListener("NEJsbridgeReady", i, !1)) : typeof window.WeixinJSBridge == "object" || typeof window.YixinJSBridge == "object" ? c() : document.addEventListener ? (document.addEventListener("WeixinJSBridgeReady", c, !1), document.addEventListener("YixinJSBridgeReady", c, !1)) : document.attachEvent && (document.attachEvent("WeixinJSBridgeReady", c), document.attachEvent("YixinJSBridgeReady", c), document.attachEvent("onWeixinJSBridgeReady", c), document.attachEvent("onYixinJSBridgeReady", c)), {
					YXShareReset: i,
					shareOnMaster: a,
					shareOnYQ: u
				}
			}();
			window.PSC_C_API = $.extend(window.PSC_C_API || {}, _PSC_C_API)
